﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.UI.DataVisualization.Charting;
using LSBLL;
using LSEntity;
using LSInterFace;
using LSUtility;
using MathematicsBLL;
using MathematicsEntity;

namespace LSWeb.Controllers
{
    public class CommonController : Controller
    {
        public ActionResult TestReport()
        {
            return new ChartResult(new ChartEntity<ChartShowEntity<String, int, String>>
                                       {
                                           CacheKey = KSBWebConfig.TestReportChartCacheKey,
                                           Title = "练习报告",
                                           XTitle = "",
                                           YTitle = "",
                                           Width = 600,
                                           Height = 400,
                                           GetData = () => KSBBLL.TestReportData().TestReport(),
                                           ChartType = SeriesChartType.Bar
                                       }.GetChart(m => m.XField, m => m.YField, m => m.GroupField));
        }
    }
}
